/**
 * Copyright © 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.point.entity;

import com.jeeplus.modules.member.entity.Member;
import javax.validation.constraints.NotNull;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.jeeplus.core.persistence.DataEntity;
import com.jeeplus.common.utils.excel.annotation.ExcelField;
import lombok.Data;

/**
 * 用户积分Entity
 * @author zhych
 * @version 2021-11-16
 */
@Data
public class Point extends DataEntity<Point> {
	
	private static final long serialVersionUID = 1L;
    @NotNull(message="转入用户不能为空")
	@ExcelField(title="转入用户", fieldType=Member.class, value="inU.nickname", align=2, sort=1)
	private Member inU;		// 转入用户
    @NotNull(message="转出用户不能为空")
	@ExcelField(title="转出用户", fieldType=Member.class, value="outU.nickname", align=2, sort=2)
	private Member outU;		// 转出用户
	@ExcelField(title="金额", align=2, sort=3)
	private String money;		// 金额
	@ExcelField(title="类型", dictType="", align=2, sort=4)
	private String pointType;		// 类型
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@ExcelField(title="更新时间", align=2, sort=6)
	private Date updateDate;		// 更新时间
	private Date beginCreateDate;		// 开始 创建时间
	private Date endCreateDate;		// 结束 创建时间
	
	public Point() {
		super();
	}
	
	public Point(String id){
		super(id);
	}
}